﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SCS.GFX;
using SCS.Objects;

namespace SCS
{
    static public class Game
    {
        static public List<Entity> Entities = new List<Entity>();



        static public void Initialise()
        {
            Logger.WriteLog("Initialising Game...");

            Ship s;
            for (int i = 0; i < 1; i++)
            {
                s = new Ship();
                s.Position = new SlimDX.Vector3(i, 0.0f, 0.0f);
                s.Name = "Ship nr. " + i.ToString();
                s.Type = EntityType.Ship;
                s.ShipType = ShipType.Attack;
               // s.Model = Models.getModel("jabinello");

               // Entities.Add(s);
            }

            for (int i = 10; i < 15; i++)
            {
                s = new Ship();
                s.Position = new SlimDX.Vector3((i*2)-30,0.0f, 0.0f);
                s.Name = "Ship nr. " + i.ToString();
                s.Type = EntityType.Ship;
                s.ShipType = ShipType.Defense;
                s.Model = Models.getModel("uv");
                // s.Model = Models.getModel("jabinello");

                Entities.Add(s);
            }


            Logger.WriteLog("...Done!");

        }

        static public void Update(RenderInfo FrameInfo)
        {
            //for all entities think/animate
        }

        static public void Shutdown()
        {
            Logger.WriteMsg("Game shutting down");
        }
    }
}
